package com.example.jetgege.smsdemo;


import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;


public class BootReceiver extends BroadcastReceiver {
    public BootReceiver() {

    }

    @Override
    public void onReceive(Context context, Intent intent) {
        Log.d("TAG1","开机自启动服务");
        context.startService(new Intent("com.example.jetgege.service.SMSReceived"));
    }



}
